; _________________________________________________
;| Omni-Psych Super Dizzy [LE] Version 3  by Seven |
; ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
;===============================================================================
;=============================<Win/Lose/Intro>==================================
;===============================================================================

;===============================================================================
;                    Version  3  THE Challenge Edition
;===============================================================================
;=====The Number's Next to the constant's are optional Versions of [LE]=========
;===============================================================================
;==And For Those Who Wish To Seek The Hardest Challenge, Use Her Optional Stats=
;===============================================================================


; Lose
[Statedef 170]
anim = 170
ctrl = 0

[State 170]
type = AssertSpecial
trigger1 = time = [0,100]
flag = roundnotover

[State 170]
type = PlaySnd
trigger1 = animelem = 1,1
value = 5150,1+var(1)*10

;===============================================================================
;===============================================================================
; Win 1
[Statedef 180]
anim = 181
ctrl = 0


[State 180]
type = ChangeState
trigger1 = time = 0 && matchover = 1
value = 182

[State 180]
type = ChangeState
trigger1 = time = 0 && random < 500
value = 181

[State 180]
type = AssertSpecial
trigger1 = time = [0,140]
flag = roundnotover


[State 180]
type = PlaySnd
trigger1 = animelem = 1,1
value = 180,ifelse(var(1)>=3,var(1)*10,0)

[State snd]
type = PlaySnd
trigger1 = animelem = 9
value = 7501,0

[State snd]
type = PlaySnd
trigger1 = animelem = 9
value = 4300,0

;===============================================================================
;===============================================================================
; Win 2
[Statedef 181]
anim = 2400

[State 181]
type = PlaySnd
trigger1 = animelem=7
value = 197,10
volume = 255

[State 181]
type = AssertSpecial
trigger1 = time = [0,240]
flag = roundnotover

[State 181]
type = PlaySnd
trigger1 = time = 12
value = 4460,0



[State 181, super effect]
type = Explod
trigger1 =animelem=1||animelem=2||animelem=3||animelem=4||animelem=5||animelem=6||animelem=7||animelem=8
anim = 7773
postype = p1
bindtime = -1
removetime = 50
pos= 0,-120
supermove = 1
sprpriority = -5

[State 181]
type = Explod
trigger1=  timemod = 100,0
anim = 7777
sprpriority = -1
postype = p1
pos = -70,-40
removetime = 64
supermove = 1
sprpriority = 5


[State pal]
type = BGPalFX
trigger1 = animelem = 1
time = 65
sinadd = -128,-128,-64,104
ignorehitpause = 1
[State pal]
type = BGPalFX
trigger1 = time >= 1
time = 65
add = -128,-128,-64
sinadd = 128,128,64,104
ignorehitpause = 1



[State vel]
type = velset
trigger1 = 1
x = 0
y = -10

;===============================================================================
;===============================================================================
; Win 3
[Statedef 182]
anim = 181
velset = 0,0

[State 182]
type = AssertSpecial
trigger1 = time = [0,380]
flag = roundnotover

[State 182]
type = Explod
trigger1 = time = 0
anim = 5800
pos = -40,60
postype = left
vel = 10.5,0
accel = -.5,0
removetime = 20
sprpriority = 7
ontop = 1
ownpal = 1

[State 182]
type = Explod
trigger1 = time = 20
anim = 5800
pos = 75,60
postype = left
bindtime = -1
sprpriority = 7
ontop = 1
ownpal = 1


[State 182]
type = AssertSpecial
trigger1 = var(1) = 0 && animelem = 8,< 50
trigger2 = var(1) = 1 && animelem = 8,< 85
trigger3 = var(1) = 2 && animelem = 8,< 30
trigger4 = var(1) = 3 && animelem = 8,< 45
trigger5 = var(1) = 4 && animelem = 8,< 120
trigger6 = var(1) = 5 && animelem = 8,< 115
trigger7 = var(1) = 6 && animelem = 8,< 50
trigger8 = var(1) = 7 && animelem = 8,< 85
trigger9 = var(1) = 8 && animelem = 8,< 30
trigger10 = var(1) = 9 && animelem = 8,< 45
trigger11 = var(1) = 10 && animelem = 8,< 120
trigger12 = var(1) = 11 && animelem = 8,< 115
flag = roundnotover

[State 182]
type = PlaySnd
trigger1 = animelem = 1,1
value = 182,var(1)*10

[State snd]
type = PlaySnd
trigger1 = animelem = 3
value = 7501,0

[State snd]
type = PlaySnd
trigger1 = animelem = 7
value = 191,1

[State mouth]
type = Explod
trigger1 = var(1) = 0 && animelem = 8,20
trigger2 = var(1) = 1 && animelem = 8,25
trigger3 =(var(1) = [2,4])&& animelem = 8
trigger4 = var(1) = 5 && animelem = 8,10
anim = 4820
ID = 4820
bindtime = -1
removetime = -1
scale = const(size.xscale),const(size.yscale)
sprpriority = 2

[State explod]
type = RemoveExplod
trigger1 = var(1) = 0 && animelem = 8,40
trigger2 = var(1) = 1 && animelem = 8,75
trigger3 = var(1) = 2 && animelem = 8,20
trigger4 = var(1) = 3 && animelem = 8,35
trigger5 = var(1) = 4 && animelem = 8,110
trigger6 = var(1) = 5 && animelem = 8,105
ID = 4820



;===============================================================================
;===============================================================================
; Winner
[Statedef 189]

[State 189]
type = AssertSpecial
trigger1 = time = [0,349]
flag = roundnotover
[State 189]
type = AssertSpecial
trigger1 = ishometeam = 0 && teamside = 1
flag = nomusic
[State snd]
type = PlaySnd
trigger1 = ishometeam = 0 && teamside = 1
trigger1 = time = 20
value = 189,0
volume = 255

[State explod]
type = Explod
trigger1 = time = 0
anim = 4890
postype = left
bindtime = -1
sprpriority = 6
ontop = 1
ownpal = 1

[State face]
type = Explod
trigger1 = time = 0
anim = 5800
pos = -40,60
postype = left
vel = 10.5,0
accel = -.5,0
removetime = 20
sprpriority = 7
ontop = 1
ownpal = 1
[State face]
type = Explod
trigger1 = time = 20
anim = 5800
pos = 75,60
postype = left
bindtime = -1
sprpriority = 7
ontop = 1
ownpal = 1

[State message]
type = Explod
trigger1 = enemynear,name = "Omni-Psych Super Dizzy [LE]"
trigger1 = time = 20
anim = 9850
ID = 9800
postype = left
bindtime = -1
sprpriority = 9
ontop = 1
ownpal = 1

[State message]
type = Explod
trigger1 = numexplod(9800) = 0 && time = 20
anim = ifelse(life<499,ifelse(life<249,9802,9801),9800)
postype = left
bindtime = -1
ontop = 1
ownpal = 1


;===============================================================================
;===============================================================================

; Intro 1
[Statedef 187]
anim = 189

[State 187]
type = AssertSpecial
trigger1 = 1
flag = nomusic

[State 187]
type = AssertSpecial
trigger1 = time = [0,750]
flag = intro


[State 187, super effect]
type = Explod
triggerall = time > 50
trigger1 =  timemod = 450,0
anim = 4500
removetime = 64
pos= 0,-80
supermove = 1
sprpriority = 5

[State 187, super effect]
type = Explod
triggerall = time > 50
trigger1 =  timemod = 350,0
anim = 4501
removetime = 64
pos= 0,-80
supermove = 1
sprpriority = 5

[State 187, super effect]
type = Explod
triggerall = time > 50
trigger1 =  timemod = 350,0
anim = 4502
removetime = 64
pos= 0,-80
supermove = 1
sprpriority = 5

[State 187, super effect]
type = Explod
triggerall = time > 50
trigger1 =  timemod = 350,0
anim = 7779
removetime = 64
pos= 0,0
supermove = 1
sprpriority = 5

[State 187]
type = PlaySnd
triggerall = time > 50
trigger1 = timemod = 350,0
value = 7500,1


[State 187]
type = PlaySnd
trigger1 = animelem = 1
value = 7500,2

[State 187]
type = PlaySnd
trigger1 = time = 1
value = 192,531

[State 187]
type = PlaySnd
trigger1 = time = 280
value = 190,32

[State 187]
type = PlaySnd
trigger1 = time = 400
value = 197,20

[State 187]
type = PlaySnd
trigger1 = time = 580
value = 5150,21

;===============================================================================
;===============================================================================
; Intro 2
[Statedef 185]
anim = 190

[State 185]
type = AssertSpecial
trigger1 = 1
flag = nomusic

[State 185]
type = PowerAdd
trigger1 = animelem = 1
value = 1000000

[State 185]
type = Helper
trigger1 = animelem= 57
trigger1 = numhelper(9100) = 0
helpertype = normal
name = "Omni-Psych Helper"
stateno = 9100
ID = 9100
ownpal = 1
supermovetime = 9999
ignorehitpause = 1



[State 185]
type = PlaySnd
trigger1 = animelem = 1
value = 7500,2

[State 185]
type = PlaySnd
trigger1 = animelem = 10
value = 182,50

[State 185]
type = PlaySnd
trigger1 = animelem = 5
value = 7500,0


[State 185]
type = PlaySnd
trigger1 = animelem = 20
value = 7500,0

[State 185]
type = PlaySnd
trigger1 = animelem = 45
value = 5300,10


[State 185]
type = PlaySnd
trigger1 = animelem = 30
value = 7500,0

[State super effect]
type = Helper
trigger1 = animelem = 60
name = "super"
stateno = 4500
pos =  0,-80
ownpal = 1
size.xscale = 1
size.yscale = 1

[State 185]
type = PlaySnd
trigger1 = animelem = 40
value = 7500,0

[State 185]
type = PlaySnd
trigger1 = animelem = 65
value = 5150,0

[State 185]
type = PlaySnd
trigger1 = animelem = 50
value = 7500,0

[State super effect]
type = Helper
trigger1 = animelem = 70
name = "super"
stateno = 4500
pos =  0,-80
ownpal = 1
size.xscale = 1
size.yscale = 1

[State 185]
type = PlaySnd
trigger1 = animelem = 60
value = 7500,1

[State 185]
type = PlaySnd
trigger1 = animelem = 71
value = 7500,1

[State 185]
type = PlaySnd
trigger1 = animelem = 75
value = 5150,0

[State 185]
type = PlaySnd
trigger1 = animelem = 81
value = 7500,1

[State super effect]
type = Helper
trigger1 = animelem = 80
name = "super"
stateno = 4500
pos =  0,-80
ownpal = 1
size.xscale = 1
size.yscale = 1

[State 185]
type = PlaySnd
trigger1 = animelem = 91
value = 7500,1

[State 185]
type = PlaySnd
trigger1 = animelem = 85
value = 5150,0


[State 185]
type = PlaySnd
trigger1 = animelem = 101
value = 7500,1

[State super effect]
type = Helper
trigger1 = animelem = 90
name = "super"
stateno = 4500
pos =  0,-80
ownpal = 1
size.xscale = 1
size.yscale = 1

[State super effect]
type = Helper
trigger1 = animelem = 95
name = "super"
stateno = 4500
pos =  0,-80
ownpal = 1
size.xscale = 1
size.yscale = 1

[State super effect]
type = Helper
trigger1 = animelem = 105
name = "super"
stateno = 4500
pos =  0,-80
ownpal = 1
size.xscale = 1
size.yscale = 1

[State 185]
type = PlaySnd
trigger1 = animelem = 111
value = 7500,1

[State 185]
type = PlaySnd
trigger1 = animelem = 100
value = 191

[State 185]
type = PlaySnd
trigger1 = animelem = 115
value = 7501,0

[State 185]
type = Explod
triggerall = time = [490,850]
trigger1 = (GameTime%2) = 1
anim = 7779
sprpriority = -5
scale = .6,.6
postype = p1
pos = 0,0
bindtime = -1
under = 0
ownpal = 1
persistent = 1
ignorehitpause = 0
SuperMoveTime = 9999
PauseMoveTime = 9999

[State 185]
type = AssertSpecial
trigger1 = time = [0,810]
flag = intro

;===============================================================================
;===============================================================================
; Intro 3
[Statedef 188]
anim = 188

[State 188]
type = AssertSpecial
trigger1 = 1
flag = nomusic

[State 188]
type = AssertSpecial
trigger1 = time = [0,650]
flag = intro


[State 188, super effect]
type = Explod
triggerall = time > 50
trigger1 =  timemod = 450,0
anim = 4500
removetime = 64
pos= 0,-80
supermove = 1
sprpriority = 5

[State 188, super effect]
type = Explod
triggerall = time > 50
trigger1 =  timemod = 350,0
anim = 4501
removetime = 64
pos= 0,-80
supermove = 1
sprpriority = 5

[State 188, super effect]
type = Explod
triggerall = time > 50
trigger1 =  timemod = 350,0
anim = 4502
removetime = 64
pos= 0,-80
supermove = 1
sprpriority = 5

[State 188, super effect]
type = Explod
triggerall = time > 50
trigger1 =  timemod = 350,0
anim = 7779
removetime = 64
pos= 0,0
supermove = 1
sprpriority = 5

[State 188]
type = PlaySnd
triggerall = time > 50
trigger1 = timemod = 350,0
value = 7500,1


[State 188]
type = PlaySnd
trigger1 = animelem = 1
value = 7500,2

[State 188]
type = PlaySnd
trigger1 = time = 1
value = 182,10

[State 188]
type = PlaySnd
trigger1 = time = 280
value = 190,42

[State 188]
type = PlaySnd
trigger1 = time = 400
value = 197,20

[State 188]
type = PlaySnd
trigger1 = time = 580
value = 2202,0

;===============================================================================
;===============================================================================
[Statedef 186]
anim = 186

[State 186]
type = AssertSpecial
trigger1 = 1
flag = nomusic

[State 186]
type = AssertSpecial
trigger1 = time = [0,650]
flag = intro


[State 186, super effect]
type = Explod
triggerall = time > 50
trigger1 =  timemod = 450,0
anim = 4500
removetime = 64
pos= 0,-80
supermove = 1
sprpriority = 5

[State 186, super effect]
type = Explod
triggerall = time > 50
trigger1 =  timemod = 350,0
anim = 4501
removetime = 64
pos= 0,-80
supermove = 1
sprpriority = 5

[State 186, super effect]
type = Explod
triggerall = time > 50
trigger1 =  timemod = 350,0
anim = 4502
removetime = 64
pos= 0,-80
supermove = 1
sprpriority = 5

[State 186, super effect]
type = Explod
triggerall = time > 50
trigger1 =  timemod = 350,0
anim = 7779
removetime = 64
pos= 0,0
supermove = 1
sprpriority = 5

[State 186]
type = PlaySnd
triggerall = time > 50
trigger1 = timemod = 350,0
value = 7500,1


[State 186]
type = PlaySnd
trigger1 = animelem = 1
value = 7500,2

[State 186]
type = PlaySnd
trigger1 = time = 1
value = 2052,30

[State 186]
type = PlaySnd
trigger1 = time = 280
value = 2052,52

[State 186]
type = PlaySnd
trigger1 = time = 400
value = 5003,30

[State 186]
type = PlaySnd
trigger1 = time = 580
value = 192,541

;===============================================================================
;===============================================================================
;Omni-Res
[Statedef 192]
anim = 192

[State 192]
type = AssertSpecial
trigger1 = time = [0,25]
flag = intro
flag2 = roundnotover

[State 192] ;Defeated Intro
type = varset
trigger1 = !Time
trigger1 = var(59)
v = 58
value = 1

[State 192]
type = Helper
trigger1 = animelem = 21
helpertype = player
name = "clone"
stateno = 9000
ID = 9000
pos = 30,0
keyctrl = 1

[State 192]
type = Helper
trigger1 = animelem = 21
helpertype = player
name = "clone"
stateno = 9000
ID = 9000
pos = -30,0
keyctrl = 1



[State 192]
type = Helper
trigger1 = !Time
trigger1 = var(58)  = 1
helpertype = normal
name = "Omni-Psych Helper"
stateno = 9100
ID = 9100
ownpal = 1
supermovetime = 9999
ignorehitpause = 1

[State 192]
type = PlaySnd
trigger1 = time = 1
value = 192,541

;===============================================================================
;===============================================================================

; Taunt
[Statedef 195]
type = S
movetype = A
physics = S
anim = 195
velset = 0,0
ctrl = 0

[State 195]
type = PlaySnd
trigger1 =((var(1) = [0,1])||(var(1) = [3,4]))&& animelem = 3
trigger2 =(var(1) = 2 || var(1) = 5)&& animelem = 5
value = 195,var(1)*10


[State hit]
type = HitDef
trigger1 = time = 0
trigger1 = numhelper(9100) = 0
attr = C,NA
hitflag = M
animtype = hard
damage =  Ceil(0.03 * enemy,Const(data.life)),Ceil(0.005 * enemy,Const(data.life))
pausetime = 0,1
sparkno = 9400
guard.sparkno = 40
sparkxy = -10,-100
hitsound = s4050,0
guardsound = s4450,0
ground.slidetime = 10
p2stateno = 5060
ground.hittime = 10
ground.velocity = -4
kill = 1

[State hit]
type = HitDef
trigger1 = time = 0
trigger1 = numhelper(9100) = 1
attr = C,NA
hitflag = M
animtype = hard
damage =  Ceil(0.05 * enemy,Const(data.life)),Ceil(0.005 * enemy,Const(data.life))
pausetime = 0,1
sparkno = 9400
guard.sparkno = 40
sparkxy = -10,-100
hitsound = s4050,0
guardsound = s4450,0
ground.slidetime = 10
ground.hittime = 10
p2stateno = 5060
ground.velocity = -4
kill = 1


[State type]
type = StateTypeSet
trigger1 = animelem = 10
movetype = I

[State end]
type = ChangeState
trigger1 = animtime = 0
value = 0
ctrl = 1

;===============================================================================
;===============================================================================
; Respect
[Statedef 197]
type = S
movetype = I
physics = S
anim = 51
velset = 0,0
ctrl = 0

[State var]
type = varrandom
trigger1 = anim = 197 && time = 0
v = 999
range = 0,1

[State ctrl]
type = ctrlset
trigger1 = time = 25
value = 1

[State 197]
type = PlaySnd
trigger1 = anim = 197 && animelem = 4
value = 197,var(1)*10+var(2)
channel = 4

[State anim]
type = ChangeAnim
trigger1 = anim = 197 && animelem = 4
value = 4950
[State anim]
type = ChangeAnim
triggerall = anim = 4950
trigger1 = var(1) = 0 && var(2) = 0 && time = 95
trigger2 =(var(1) = [0,1])&& var(2) = 1 &&(time = 50 || time = 170)
trigger3 = var(1) = 1 && var(2) = 0 && time = 110
trigger4 = var(1) = 2 && var(2) = 0 &&(time = 50 || time = 140)
trigger5 = var(1) = 2 && var(2) = 1 &&(time = 50 || time = 120)
trigger6 =(var(1) = 3 || var(1) = 5)&& var(2) = 0 && time = 125
trigger7 = var(1) = 3 && var(2) = 1 &&(time = 35 || time = 105 || time = 175)
trigger8 = var(1) = 4 && var(2) = 0 && time = 140
trigger9 = var(1) = 4 && var(2) = 1 &&(time = 50 || time = 155)
trigger10 = var(1) = 5 && var(2) = 1 &&(time = 65 || time = 170)
value = 4951

[State anim]
type = ChangeAnim
triggerall = anim = 4951
trigger1 =(var(1) = [0,1])&& var(2) = 1 && time = 75
trigger2 = var(1) = 2 && var(2) = 0 && time = 75
trigger3 = var(1) = 2 && var(2) = 1 && time = 70
trigger4 = var(1) = 3 && var(2) = 1 &&(time = 55 || time = 115)
trigger5 = var(1) = 4 && var(2) = 1 && time = 75
trigger6 = var(1) = 5 && var(2) = 1 && time = 75
value = 4950
;persistent = 0

[State end]
type = ChangeState
trigger1 = anim = 4951 && animtime = 0
value = 0
ctrl = 1

;===============================================================================
;===============================================================================
; Initialize (at the start of the round)
[Statedef 5900]
type = S

[State 5900, special intro]
type=changestate
triggerall= roundno = 1
trigger1 = (Enemy,Name = "Mizuchi") && (Enemy,Authorname = "ahuron")
trigger2 = enemy,name = "Sabaki Ryuuken"
trigger3 = enemy,authorname = "The Necromancer"
trigger4 = enemy,name = "Seven"
trigger5 = enemy,name = "SuperKen"
trigger6 = enemy,authorname = "gulthor"
trigger7 = enemy,name = "Goku SSJ6"
trigger8 = enemy,authorname = "Zero_Col"
trigger9 = enemy,authorname = "supermystery"
trigger10 = enemy,name = "Rare Akuma"
trigger11 = enemy,name = "O-Adel"
trigger12 = enemy,name = "Scott Summers"
trigger13 = enemy,authorname = "Seven"
trigger14 = enemy,authorname = "kuri"
trigger15 = enemy,authorname = "FRS GAMES"
trigger16 = enemy,name = "Dizzy"
trigger17 = enemy,authorname = "Seven/NANA"
trigger18 = enemy,name = "Omni-Psych justice"
trigger19 = enemy,authorname = "nana"
trigger20 = enemy,name = "Omni-Psych Super Dizzy Lv1"
trigger21 = enemy,name = "Omni-Psych Super Dizzy Lv2"
trigger22 = enemy,name = "Omni-Psych Super Dizzy Lv 3"
trigger23= enemy,name = "Omni-Psych Chipp"
trigger24 = enemy,name = "Omni-Psych Jam"
trigger25 = enemy,name = "Ayu Tukimiya"
trigger25 = enemy,authorname = "shikkoku"
trigger26 = enemy,name = "mechhisuiex"
trigger27 = enemy,name = "Psycho Shredder[S]"
value= 185


[State 5900, intro 1]
type=changestate
trigger1= roundno = 1 && random < 250
value= 187

[State 5900, intro 2]
type=changestate
trigger1= roundno = 1 && random < 250
value= 188

[State 5900, intro 3]
type=changestate
trigger1= roundno = 1 && random < 250
value= 186

[State 5900,  defeated intro]
type = ChangeState
trigger1 = roundno >= 2
trigger1 = var(58)  = 1
value = 192

[State 5900]
type=changestate
trigger1=ishelper(9741)
value=9741

[State 5900, AI Challengers]
type = Helper
triggerall = !time
triggerall = var(59)
trigger1 = (Enemy,Name = "Mizuchi") && (Enemy,Authorname = "ahuron")
trigger2 = enemy,name = "Sabaki Ryuuken"
trigger3 = enemy,authorname = "The Necromancer"
trigger4 = enemy,name = "Seven"
trigger5 = enemy,name = "SuperKen"
trigger6 = enemy,authorname = "gulthor"
trigger7 = enemy,name = "Goku SSJ6"
trigger8 = enemy,authorname = "Zero_Col"
trigger9 = enemy,authorname = "supermystery"
trigger10 = enemy,name = "Rare Akuma"
trigger11 = enemy,name = "O-Adel"
trigger12 = enemy,name = "Scott Summers"
trigger13 = enemy,authorname = "Seven"
trigger14 = enemy,authorname = "kuri"
trigger15 = enemy,authorname = "FRS GAMES"
trigger16 = enemy,name = "Dizzy"
trigger17 = enemy,authorname = "Seven/NANA"
trigger18 = enemy,name = "Omni-Psych justice"
trigger19 = enemy,authorname = "nana"
trigger20 = enemy,name = "Omni-Psych Super Dizzy Lv1"
trigger21 = enemy,name = "Omni-Psych Super Dizzy Lv2"
trigger22 = enemy,name = "Omni-Psych Super Dizzy Lv 3"
trigger23= enemy,name = "Omni-Psych Chipp"
trigger24 = enemy,name = "Omni-Psych Jam"
trigger25 = enemy,name = "Ayu Tukimiya"
trigger25 = enemy,authorname = "shikkoku"
trigger26 = enemy,name = "mechhisuiex"
trigger27 = enemy,name = "Psycho Shredder[S]"
helpertype = normal
name = "Omni-Psych Helper"
stateno = 9100
ID = 9100
ownpal = 1
supermovetime = 9999
ignorehitpause = 1



